﻿<!DOCTYPE html>
<html>
<head id="ctl00_head1">
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title Thu thập dữ liệu Online</title>
    @Styles.Render("~/Content/cssOnlineForm")
    <link href="@Url.Content("~/Content/bootstrap.min.css")" rel="stylesheet" type="text/css" />
    <link href="~/Content/standard_form_nhaplieu.css" rel="stylesheet" />
    <link href="~/Content/form_login_online.css" rel="stylesheet" />
    <link href="~/Content/bootstrap-select.css" rel="stylesheet" />
    <link href="@Url.Content("~/Content/jquery-ui.1.10.2.css")" rel="stylesheet" type="text/css" />
    

    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script src="@Url.Content("~/Scripts/jquery-ui.1.10.2.js")" type="text/javascript"></script>
    <script src="~/Scripts/khasinh.js"></script>
    <script src="~/Scripts/bootstrap-select.js"></script>
    <script src="~/Scripts/jquery.maskedinput.js"></script>
    <script src="~/Scripts/jquery.validate.js"></script>
    <script src="~/Scripts/jquery.validate.unobtrusive.js"></script>

    @*@Scripts.Render("~/bundles/modernizr")*@

    <script>
        $(document).ready(function () {
            $("#btnSaveandLogout").click(function () {
                $("#dialog-confirm-save").dialog({
                    resizable: false,
                    width: 400,
                    height: 140,
                    modal: true,
                    buttons: {
                        "Lưu và Thoát": function () {
                            check = null;
                            $('input[id=btnNext]').each(function (i, e) {
                                if (i == "0") {
                                    check = i;
                                }
                            });
                            if (check == null) {
                                $("#btnBack").trigger("click", ["2"]);
                                $("#btnSubmitComplete").trigger("click");

                            } else {
                                $("#btnNext").trigger("click", ["2"]);
                            }
                            $(this).dialog("close");
                        },
                        "Không Thoát": function () {
                            $(this).dialog("close");

                        }
                    }
                });
               
            });
            $('#btnTrogiup').click(function () {
                var open_link = window.open('', '_blank');
                open_link.location = '@Url.Action("Support", "Support")';
            });
        });
        
    </script>
    <style>
        #btnSaveandLogout:hover {
            cursor: pointer;
            text-decoration: underline;
        }
        #btnTrogiup:hover {
            cursor: pointer;
            text-decoration: underline;
        }
         #dialog-confirm-save {
            height: 35px;
        }

        .ui-widget-header {
            border: 1px solid rgb(0,153,153);
            background: rgb(0,153,153) url("images/ui-bg_gloss-wave_35_f6a828_500x100.png") 50% 50% repeat-x;
        }
        .ui-dialog-titlebar-close {
            display: none;
        }
        .ui-dialog .ui-dialog-content {
            overflow: hidden;
            height: 1% !important;
        }
    </style>
</head>
<body>
    <div id="wrapper">
        <div id="header_online">
            <div id="header_general">
                <div id="img_banner">
                    <img src="../Images/Banner/banner_online.jpg">
                </div>
                <div id="menu_header">
                    <span style="color: white;">Tổng Cục Thống Kê</span>
                    <span id="btnTrogiup" style="color: white; float: right; margin-right: 2%;">Trợ giúp</span>
                    <span id="btnSaveandLogout" style="color: white; float: right;  margin-right: 4%; visibility: hidden;">Lưu và Thoát</span>
                    
                </div>
            </div>
            
            <!--End #mainNav-->


        </div>
        <div id="divLoading" style="display:none">
            <p style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 100; ">
                <img src="../Images/ajax-loader.gif">
            </p>
        </div>
        <div id="dialog-confirm-save" title="Thông Báo !" style="display: none; ">
            <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>Bạn có muốn Lưu và Thoát không ?</p>
        </div>
        <div class="container content_online">
            @RenderBody()

        </div>
        <footer class="footer" style="color:white;">
            <span class="first">Điện thoại liên hệ: (84-04) .38463544</span>
            <span class="second">Thời gian: 08/2015 - 09/2015</span>
        </footer>
    </div>
</body>
</html>



